package com.youzan.cloud.dataobject;

import lombok.Data;

@Data
public class SignatureConfig {
	private Integer id;
	private String appId;
	private String appSecret;

	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getId() {
		return this.id;
	}
	
	public void setAppId(String appId) {
		this.appId = appId;
	}
	
	public String getAppId() {
		return this.appId;
	}
	
	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	
	public String getAppSecret() {
		return this.appSecret;
	}
	

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        SignatureConfig that = (SignatureConfig) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "SignatureConfig{" +
				"id=" + id +
						",appId='" + appId + "'" + 
						",appSecret='" + appSecret + "'" + 
		                '}';
    }
	
}